import request from '@/utils/request'

// 枚举查询
export function selectByCode(query) {
    return request({
        url: '/sysdict/selectByCode',
        method: 'post',
        params: query
    })
}

// 列表查询
export function alarmInfo(query1,query2) {
    return request({
        url: `/ywalarminfo/list?current=${query2.current}&size=${query2.size}`,
        method: 'post',
        data: query1
    })
}
// 告警信息修改
export const alarmUpdate = (query) => {
    return request({
        method: 'post',
        url: '/ywalarminfo/update',
        data: query,
    });
};
// 告警信息关闭
export const alarmStop = (query) => {
    return request({
        method: 'post',
        url: '/ywalarminfo/stop',
        data: query,
    });
};
